label: Skip updating link state if we have no layout
authorTimm Bäder <mail@baedert.org>
Fri, 11 Jan 2019 16:46:12 +0000 (17:46 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 11 Jan 2019 16:46:12 +0000 (17:46 +0100)
commit563b80d43491223aed3512c31eaa8e069ea3c076
tree491200b9d40ab6fa20135ed18fb06b024c54733b
parentf4f0f0e6a0488146518266e20d07eb37aeb9b558
label: Skip updating link state if we have no layout

This can happen whenever the ::activate-link handler sets different
markup on the label, causing all links to be recreated. In this case,
the GtkLabelLink* passed to emit_activate_link is garbage after the
g_signal_emit call and we shouldn't try to do anything with it.

Fixes #1498
gtk/gtklabel.c